<script lang="ts" setup name="App">
import Preson from "./components/Preson.vue";
import {ref} from "vue";
let title2 = ref()
let ren = ref()

function showRen(){
  // console.log(title2.value)
  console.log(ren.value)
}
</script>

<template>
  <div id="app">
    <h2 ref="title2">你好</h2>
    <button @click="showRen">点击打印</button>
    <Preson ref="ren"/>
  </div>
</template>

